package org.eerbaar.lang.expressions;

import org.eerbaar.lang.Expression;
import org.eerbaar.lang.HasRuntime;
import org.eerbaar.lang.runtime.Executor;
import org.eerbaar.lang.runtime.Runtime;

public class StringVar implements Expression, HasRuntime {

    private final String value;

    public StringVar(String value) {
        this.value = value;
    }

    @Override
    public Runtime getRuntime() {

        return new Runtime() {

            @Override
            public void execute(Executor exec) {
                //
            }

            @Override
            public Object getResult() {
                return value;
            }

        };
    }

}
